import request from '@/utils/request';
// 结算方式/heart/KingBaseSettlementType/disable
export function KingBaseSettlementTypedisabled(query) {
  return request({
    url: `/heart/KingBaseSettlementType/disabled`,
    method: 'get',
    params: query
  })
}
// 收付款/heart/KingBaseReceiptPayPurpose/disabled
export function KingBaseReceiptPayPurposedisabled(query) {
  return request({
    url: `/heart/KingBaseReceiptPayPurpose/disabled`,
    method: 'get',
    params: query
  })
}
// 币别禁用解禁/heart/KingBaseCurrency/disabled
export function KingBaseCurrencydisabled(query) {
    return request({
      url: `/heart/KingBaseCurrency/disabled`,
      method: 'get',
      params: query
    })
  }

// 获取结算方式信息heart/KingBaseSettlementType/{id}
// /heart/KingProfitLoss/{id} 盘盈详情
export function updataKingProfitLossList(query) {
    return request({
      url: `/heart/KingBaseSettlementType/${query}`,
      method: 'get'
    })
  }
// 修改结算信息 /heart/KingBaseSettlementType
export function editKingBaseSettlementTypeList(data) {
    return request({
      url: '/heart/KingBaseSettlementType',
      method: 'put',
      data
    })
  }
  // 删除结算方式/heart/KingBaseSettlementType/{ids}
  export function deleteKingBaseSettlementType(query) {
    return request({
      url: '/heart/KingBaseSettlementType/' + query,
      method: 'delete',
    })
  }
// 
  // 收付款删除/heart/KingBaseReceiptPayPurpose/{ids}
  export function deleteKingBaseReceiptPayPurposeType(query) {
    return request({
      url: '/heart/KingBaseReceiptPayPurpose/' + query,
      method: 'delete',
    })
  }
//   付款途径 详情/heart/KingBaseReceiptPayPurpose/{id}
export function updataKingBaseReceiptPayPurposeList(query) {
    return request({
      url: `/heart/KingBaseReceiptPayPurpose/${query}`,
      method: 'get'
    })
  }
//   付款途径 修改/heart/KingBaseReceiptPayPurpose
export function editKingKingBaseReceiptPayPurposeList(data) {
    return request({
      url: '/heart/KingBaseReceiptPayPurpose',
      method: 'put',
      data
    })
  }
// 币别详情 /heart/KingBaseCurrency/{id}
export function updataKingBaseCurrencyList(query) {
    return request({
      url: `/heart/KingBaseCurrency/${query}`,
      method: 'get'
    })
  }
// 币别修改/heart/KingBaseCurrency
export function editKingBaseCurrencyList(data) {
    return request({
      url: '/heart/KingBaseCurrency',
      method: 'put',
      data
    })
  }
  // 币别删除/heart/KingBaseCurrency/{ids}
  export function deleteKingBaseCurrencyType(query) {
    return request({
      url: '/heart/KingBaseCurrency/' + query,
      method: 'delete',
    })
  }
// 汇率体系详情/heart/KingBaseRate/{id}
export function updataKingBaseRateList(query) {
    return request({
      url: `/heart/KingBaseRate/${query}`,
      method: 'get'
    })
  }
// 修改/heart/KingBaseRate
export function editKingBaseRateList(data) {
    return request({
      url: '/heart/KingBaseRate',
      method: 'put',
      data
    })
  }
  // 禁用
  export function KingBaseRateisabled(query) {
    return request({
      url: `/heart/KingBaseRate/disabled`,
      method: 'get',
      params: query
    })
  }
  // 删除/heart/KingBaseRate/{ids}
  export function deleteKingBaseRateType(query) {
    return request({
      url: '/heart/KingBaseRate/' + query,
      method: 'delete',
    })
  }
//   费用详情/heart/KingBaseFee/{id}
export function updataKingBaseFeeList(query) {
    return request({
      url: `/heart/KingBaseFee/${query}`,
      method: 'get'
    })
  }
// 费用更改 /heart/KingBaseFee
export function editKingBaseFeeList(data) {
    return request({
      url: '/heart/KingBaseFee',
      method: 'put',
      data
    })
  }
  // 禁用/heart/KingBaseFee/disabled
  export function KingBaseFeeisabled(query) {
    return request({
      url: `/heart/KingBaseFee/disabled`,
      method: 'get',
      params: query
    })
  }
  // 删除/heart/KingBaseFee/{ids}
  export function deleteKingBaseFeeType(query) {
    return request({
      url: '/heart/KingBaseFee/' + query,
      method: 'delete',
    })
  }
  // 单据禁用/heart/KingDocType/disabled
  export function KingDocTypeisabled(query) {
    return request({
      url: `/heart/KingDocType/disabled`,
      method: 'get',
      params: query
    })
  }
  // 单据删除/heart/KingDocType/{ids}
  export function deleteKingDocTypeType(query) {
    return request({
      url: '/heart/KingDocType/' + query,
      method: 'delete',
    })
  }
// 单据类型详情/heart/KingDocType/{id}
export function updataKingDocTypeList(query) {
    return request({
      url: `/heart/KingDocType/${query}`,
      method: 'get'
    })
  }
// 单据类型修改 /heart/KingDocType
export function editKingDocTypeList(data) {
    return request({
      url: '/heart/KingDocType',
      method: 'put',
      data
    })
  }
  // 银行账号禁用/heart/KingBankAccount/disabled
  export function KingBankAccountisabled(query) {
    return request({
      url: `/heart/KingBankAccount/disabled`,
      method: 'get',
      params: query
    })
  }
  // 银行账号删除/heart/KingBankAccount/{ids}
  export function deleteKingBankAccountType(query) {
    return request({
      url: '/heart/KingBankAccount/' + query,
      method: 'delete',
    })
  }
// 银行账号详情
// /heart/KingBankAccount/{id}
export function updataKingBankAccountList(query) {
    return request({
      url: `/heart/KingBankAccount/${query}`,
      method: 'get'
    })
  }
// 银行账号修改/heart/KingBankAccount
export function editKingBankAccountList(data) {
    return request({
      url: '/heart/KingBankAccount',
      method: 'put',
      data
    })
  }
  // 往来单位
  // 禁用/heart/KingBaseTransactionsCompany/disabled
  export function KingBaseTransactionsCompanyisabled(query) {
    return request({
      url: `/heart/KingBaseTransactionsCompany/disabled`,
      method: 'get',
      params: query
    })
  }
  // 删除/heart/KingBaseTransactionsCompany/{ids}
  export function deleteKingBaseTransactionsCompanyType(query) {
    return request({
      url: '/heart/KingBaseTransactionsCompany/' + query,
      method: 'delete',
    })
  }
// 往来单位详情/heart/KingBaseTransactionsCompany/{id}
export function updataKingBaseTransactionsCompanyList(query) {
    return request({
      url: `/heart/KingBaseTransactionsCompany/${query}`,
      method: 'get'
    })
  }
// 往来单位修改/heart/KingBaseTransactionsCompany
export function editKingBaseTransactionsCompanyList(data) {
    return request({
      url: '/heart/KingBaseTransactionsCompany',
      method: 'put',
      data
    })
  }
  // 税率
  // 禁用/heart/KingBaseTaxRate/disabled
  export function KingBaseTaxRateisabled(query) {
    return request({
      url: `/heart/KingBaseTaxRate/disabled`,
      method: 'get',
      params: query
    })
  }
  // 删除/heart/KingBaseTaxRate/{ids}
  export function deleteKingBaseTaxRateType(query) {
    return request({
      url: '/heart/KingBaseTaxRate/' + query,
      method: 'delete',
    })
  }
// 税率详情/heart/KingBaseTaxRate/{id}
export function updataKingBaseTaxRateList(query) {
    return request({
      url: `/heart/KingBaseTaxRate/${query}`,
      method: 'get'
    })
  }
// 税率修改
// /heart/KingBaseTaxRate
export function editKingBaseTaxRateList(data) {
    return request({
      url: '/heart/KingBaseTaxRate',
      method: 'put',
      data
    })
  }
  // 安全库存设置
  // 禁用/heart/KingBaseSafetyStock/disabled
  export function KingBaseSafetyStockisabled(query) {
    return request({
      url: `/heart/KingBaseSafetyStock/disabled`,
      method: 'get',
      params: query
    })
  }
  // 删除/heart/KingBaseSafetyStock/{ids}
  export function deleteKingBaseSafetyStockType(query) {
    return request({
      url: '/heart/KingBaseSafetyStock/' + query,
      method: 'delete',
    })
  }
// 安全库存设置/heart/KingBaseSafetyStock/{id}
export function updataKingBaseSafetyStockList(query) {
    return request({
      url: `/heart/KingBaseSafetyStock/${query}`,
      method: 'get'
    })
  }
// 安全库存设置/heart/KingBaseSafetyStock
export function editKingBaseSafetyStockList(data) {
    return request({
      url: '/heart/KingBaseSafetyStock',
      method: 'put',
      data
    })
  }
  // 禁用部门/system/dept/{deptId}
  export function deptisabled(query) {
    return request({
      url: `/system/dept/disabled`,
      method: 'get',
      params: query
    })
  }
  // 删除部门/system/dept/{deptId}
  export function deletedeptType(query) {
    return request({
      url: '/system/dept/' + query,
      method: 'delete',
    })
  }
// 部门/system/dept/{deptId}
export function updatadeptList(query) {
    return request({
      url: `/system/dept/${query}`,
      method: 'get'
    })
  }
// /system/dept
export function editdeptList(data) {
    return request({
      url: '/system/dept',
      method: 'put',
      data
    })
  }
  // 成本中新
  // 禁用/heart/KingBaseCostCenter/disabled
  export function KingBaseCostCenterisabled(query) {
    return request({
      url: `/heart/KingBaseCostCenter/disabled`,
      method: 'get',
      params: query
    })
  }
  // 删除/heart/KingBaseCostCenter/{ids}
  export function deleteKingBaseCostCenterType(query) {
    return request({
      url: '/heart/KingBaseCostCenter/' + query,
      method: 'delete',
    })
  }
// 成本中心/heart/KingBaseCostCenter/{id}
export function updataKingBaseCostCenterList(query) {
    return request({
      url: `/heart/KingBaseCostCenter/${query}`,
      method: 'get'
    })
  }
// /heart/KingBaseCostCenter
export function editKingBaseCostCenterList(data) {
    return request({
      url: '/heart/KingBaseCostCenter',
      method: 'put',
      data
    })
  }
  // 银行
  // 禁用/heart/KingBaseBank/disabled
  export function KingBaseBankisabled(query) {
    return request({
      url: `/heart/KingBaseBank/disabled`,
      method: 'get',
      params: query
    })
  }
  // 删除/heart/KingBaseBank/{ids}
  export function deleteKingBaseBankType(query) {
    return request({
      url: '/heart/KingBaseBank/' + query,
      method: 'delete',
    })
  }
// 银行/heart/KingBaseBank/{id}
export function updataKingBaseBankList(query) {
    return request({
      url: `/heart/KingBaseBank/${query}`,
      method: 'get'
    })
  }
// /heart/KingBaseBank
export function editKingBaseBankList(data) {
    return request({
      url: '/heart/KingBaseBank',
      method: 'put',
      data
    })
  }
  // 仓库仓位禁用/heart/Warehouse/{ids}
  export function Warehouseisabled(query) {
    return request({
      url: `/heart/Warehouse/disabled`,
      method: 'get',
      params: query
    })
  }
  // 仓库仓位删除/heart/Warehouse/{ids}
  export function deleteWarehouseType(query) {
    return request({
      url: '/heart/Warehouse/' + query,
      method: 'delete',
    })
  }
// 仓库及仓位 /heart/Warehouse/{id}
export function updataWarehouseList(query) {
    return request({
      url: `/heart/Warehouse/${query}`,
      method: 'get'
    })
  }
// /heart/Warehouse
export function editWarehouseList(data) {
    return request({
      url: '/heart/Warehouse',
      method: 'put',
      data
    })
  }
// 客户
// heart/Customer/disabled
export function Customerisabled(query) {
  return request({
    url: `/heart/Customer/disabled`,
    method: 'get',
    params: query
  })
}
// /heart/Customer/{ids}
export function deleteCustomerType(query) {
  return request({
    url: '/heart/Customer/' + query,
    method: 'delete',
  })
}
///heart/Customer/{id}
export function updataCustomerList(query) {
    return request({
      url: `/heart/Customer/${query}`,
      method: 'get'
    })
  }
// /heart/Customer
export function editCustomerList(data) {
    return request({
      url: '/heart/Customer',
      method: 'put',
      data
    })
  }
  // 供应商
  // 禁用heart/Supplier/disabled
  export function Supplierisabled(query) {
    return request({
      url: `/heart/Supplier/disabled`,
      method: 'get',
      params: query
    })
  }
  // 删除/heart/Supplier/{ids}
  export function deleteSupplierType(query) {
    return request({
      url: '/heart/Supplier/' + query,
      method: 'delete',
    })
  }
// 供应商/heart/Supplier/{id}
export function updataSupplierList(query) {
    return request({
      url: `/heart/Supplier/${query}`,
      method: 'get'
    })
  }
// /heart/Supplier
export function editSupplierList(data) {
    return request({
      url: '/heart/Supplier',
      method: 'put',
      data
    })
  }
  // 物料禁用
// /heart/Material/disabled
export function Materialisabled(query) {
  return request({
    url: `/heart/Material/disabled`,
    method: 'get',
    params: query
  })
}
// 删除/heart/Material/{ids}
export function deleteMaterialType(query) {
  return request({
    url: '/heart/Material/' + query,
    method: 'delete',
  })
}
// 物料/heart/Material/{id}
export function updataMaterialList(query) {
    return request({
      url: `/heart/Material/${query}`,
      method: 'get'
    })
  }
// /heart/Material
export function editMaterialList(data) {
    return request({
      url: '/heart/Material',
      method: 'put',
      data
    })
  }
  // 供应商分组禁用/heart/KingBaseSupplierGroup/disabled
  export function KingBaseSupplierGroupisabled(query) {
    return request({
      url: `/heart/KingBaseSupplierGroup/disabled`,
      method: 'get',
      params: query
    })
  }
  // 删除/heart/KingBaseSupplierGroup/{ids}
  export function deleteKingBaseSupplierGroupType(query) {
    return request({
      url: '/heart/KingBaseSupplierGroup/' + query,
      method: 'delete',
    })
  }
// 供应商分组/heart/KingBaseSupplierGroup/{id}
export function updataKingBaseSupplierGroupList(query) {
    return request({
      url: `/heart/KingBaseSupplierGroup/${query}`,
      method: 'get'
    })
  }
// /heart/KingBaseSupplierGroup
export function editKingBaseSupplierGroupList(data) {
    return request({
      url: '/heart/KingBaseSupplierGroup',
      method: 'put',
      data
    })
  }
// 采购组
// 默认价目表
// 修改/heart/KingPurchasePrice
export function editKingPurchasePriceList(data) {
  return request({
    url: '/heart/KingPurchasePrice',
    method: 'put',
    data
  })
}
// 禁用/heart/KingPurchasePrice/disabled
export function KingPurchasePriceisabled(query) {
  return request({
    url: `/heart/KingPurchasePrice/disabled`,
    method: 'get',
    params: query
  })
}
// 详情/heart/KingPurchasePrice/{id}
export function updataKingPurchasePriceList(query) {
  return request({
    url: `/heart/KingPurchasePrice/${query}`,
    method: 'get'
  })
}
// 删除/heart/KingPurchasePrice/{ids}
export function deleteKingPurchasePriceType(query) {
  return request({
    url: '/heart/KingPurchasePrice/' + query,
    method: 'delete',
  })
}
// 收款条件禁用/heart/KingBaseReceiptCondition/disabled

export function KingBaseReceiptConditionisabled(query) {
  return request({
    url: `/heart/KingBaseReceiptCondition/disabled`,
    method: 'get',
    params: query
  })
}
// 删除/heart/KingBaseReceiptCondition/{ids}
export function deleteKingBaseReceiptConditionType(query) {
  return request({
    url: '/heart/KingBaseReceiptCondition/' + query,
    method: 'delete',
  })
}
// 收款条件/heart/KingBaseReceiptCondition/{id}
export function updataKingBaseReceiptConditionList(query) {
    return request({
      url: `/heart/KingBaseReceiptCondition/${query}`,
      method: 'get'
    })
  }
// /heart/KingBaseReceiptCondition
export function editKingBaseReceiptConditionList(data) {
    return request({
      url: '/heart/KingBaseReceiptCondition',
      method: 'put',
      data
    })
  }
  // 联系人禁用/heart/KingBaseContacts/disabled
  export function KingBaseContactsisabled(query) {
    return request({
      url: `/heart/KingBaseReceiptCondition/disabled`,
      method: 'get',
      params: query
    })
  }
  // 联系人删除/heart/KingBaseContacts/{ids}
  export function deleteKingBaseContactsType(query) {
    return request({
      url: '/heart/KingBaseContacts/' + query,
      method: 'delete',
    })
  }
// 联系人/heart/KingBaseContacts/{id}
export function updataKingBaseContactsList(query) {
    return request({
      url: `/heart/KingBaseContacts/${query}`,
      method: 'get'
    })
  }
// /heart/KingBaseContacts
export function editKingBaseContactsList(data) {
    return request({
      url: '/heart/KingBaseContacts',
      method: 'put',
      data
    })
  }
  // 币别/heart/KingBaseCurrency/list
  export function getKingBaseCurrencyList(query) {
    return request({
      url: '/heart/KingBaseCurrency/list',
      method: 'get',
      params: query
    })
  }
  // 银行/heart/KingBaseBank/list
  export function getKingBaseBankList(query) {
    return request({
      url: '/heart/KingBaseBank/list',
      method: 'get',
      params: query
    })
  }
  // 省市区/heart/Area/list
  export function getAreaList(query) {
    return request({
      url: '/heart/Area/list',
      method: 'get',
      params: query
    })
  }
  // 税收分类编码/heart/kingBaseTaxType/list
  export function getkingBaseTaxTypeList(query) {
    return request({
      url: '/heart/kingBaseTaxType/list',
      method: 'get',
      params: query
    })
  }
  // /heart/KingBaseSupplierGroup/list分组
  export function getKingBaseSupplierGroupList(query) {
    return request({
      url: '/heart/KingBaseSupplierGroup/list',
      method: 'get',
      params: query
    })
  }
